Skip to content

Conversation

@jglick
Copy link
Member

@jglick jglick commented Jan 7, 2026

@jglick jglick added the enhancement Improvement or new feature label Jan 7, 2026
@github-actions github-actions bot added the dependencies Dependency related change label Jan 7, 2026
@jglick jglick marked this pull request as ready for review January 12, 2026 17:54
@jglick jglick requested a review from a team as a code owner January 12, 2026 17:54
MarkEWaite added a commit to MarkEWaite/docker-lfs that referenced this pull request Jan 13, 2026
@MarkEWaite MarkEWaite requested a review from Copilot January 14, 2026 13:32
@MarkEWaite MarkEWaite self-assigned this Jan 14, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request refactors credential lookup code to use the newer CredentialsProvider.findCredentialByIdInItem API introduced in the credentials plugin. The change simplifies the credential lookup pattern while maintaining identical behavior.

Changes:

  • Replaced CredentialsMatchers.firstOrNull + lookupCredentialsInItem pattern with the simpler findCredentialByIdInItem API across four files
  • Removed unused CredentialsMatchers imports
  • Added temporary dependency management override for credentials plugin version 1480.v2246fd131e83 until it's available in the BOM

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/main/java/jenkins/plugins/git/GitSCMTelescope.java Simplified credential lookup while preserving authentication context and GitClient.CREDENTIALS_MATCHER validation
src/main/java/jenkins/plugins/git/GitSCMFileSystem.java Refactored credential lookup and matching logic for file system operations
src/main/java/jenkins/plugins/git/AbstractGitSCMSource.java Updated getCredentials method to use new API with consistent matcher validation
src/main/java/hudson/plugins/git/UserRemoteConfig.java Simplified lookupCredentials helper method using new API
pom.xml Added dependency management override for credentials plugin to provide the new API

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Dependency related change enhancement Improvement or new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants